Optimal. Leaf size=263 \[ -\frac{3}{4} a f \sin \left (\frac{1}{4} (2 e-\pi )\right ) \text{CosIntegral}\left (\frac{f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}+\frac{3}{4} a f \sin \left (\frac{1}{4} (6 e+\pi )\right ) \text{CosIntegral}\left (\frac{3 f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}-\frac{3}{4} a f \sin \left (\frac{1}{4} (2 e+\pi )\right ) \text{Si}\left (\frac{f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}+\frac{3}{4} a f \cos \left (\frac{1}{4} (6 e+\pi )\right ) \text{Si}\left (\frac{3 f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}-\frac{2 a \sin ^2\left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.300412, antiderivative size = 263, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {3319, 3313, 3303, 3299, 3302} \[ -\frac{3}{4} a f \sin \left (\frac{1}{4} (2 e-\pi )\right ) \text{CosIntegral}\left (\frac{f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}+\frac{3}{4} a f \sin \left (\frac{1}{4} (6 e+\pi )\right ) \text{CosIntegral}\left (\frac{3 f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}-\frac{3}{4} a f \sin \left (\frac{1}{4} (2 e+\pi )\right ) \text{Si}\left (\frac{f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}+\frac{3}{4} a f \cos \left (\frac{1}{4} (6 e+\pi )\right ) \text{Si}\left (\frac{3 f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}-\frac{2 a \sin ^2\left (\frac{e}{2}+\frac{f x}{2}+\frac{\pi }{4}\right ) \sqrt{a \sin (e+f x)+a}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3319
Rule 3313
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{(a+a \sin (e+f x))^{3/2}}{x^2} \, dx &=\left (2 a \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \frac{\sin ^3\left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right )}{x^2} \, dx\\ &=-\frac{2 a \sin ^2\left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}}{x}+\left (3 a f \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \left (\frac{\cos \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right )}{4 x}+\frac{\cos \left (\frac{3 e}{2}-\frac{\pi }{4}+\frac{3 f x}{2}\right )}{4 x}\right ) \, dx\\ &=-\frac{2 a \sin ^2\left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}}{x}+\frac{1}{4} \left (3 a f \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \frac{\cos \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right )}{x} \, dx+\frac{1}{4} \left (3 a f \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \frac{\cos \left (\frac{3 e}{2}-\frac{\pi }{4}+\frac{3 f x}{2}\right )}{x} \, dx\\ &=-\frac{2 a \sin ^2\left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}}{x}+\frac{1}{4} \left (3 a f \cos \left (\frac{1}{4} (6 e+\pi )\right ) \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \frac{\sin \left (\frac{3 f x}{2}\right )}{x} \, dx-\frac{1}{4} \left (3 a f \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sin \left (\frac{1}{4} (2 e-\pi )\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \frac{\cos \left (\frac{f x}{2}\right )}{x} \, dx-\frac{1}{4} \left (3 a f \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sin \left (\frac{1}{4} (2 e+\pi )\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \frac{\sin \left (\frac{f x}{2}\right )}{x} \, dx+\frac{1}{4} \left (3 a f \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sin \left (\frac{1}{4} (6 e+\pi )\right ) \sqrt{a+a \sin (e+f x)}\right ) \int \frac{\cos \left (\frac{3 f x}{2}\right )}{x} \, dx\\ &=-\frac{3}{4} a f \text{Ci}\left (\frac{f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sin \left (\frac{1}{4} (2 e-\pi )\right ) \sqrt{a+a \sin (e+f x)}+\frac{3}{4} a f \text{Ci}\left (\frac{3 f x}{2}\right ) \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sin \left (\frac{1}{4} (6 e+\pi )\right ) \sqrt{a+a \sin (e+f x)}-\frac{2 a \sin ^2\left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)}}{x}-\frac{3}{4} a f \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sin \left (\frac{1}{4} (2 e+\pi )\right ) \sqrt{a+a \sin (e+f x)} \text{Si}\left (\frac{f x}{2}\right )+\frac{3}{4} a f \cos \left (\frac{1}{4} (6 e+\pi )\right ) \csc \left (\frac{e}{2}+\frac{\pi }{4}+\frac{f x}{2}\right ) \sqrt{a+a \sin (e+f x)} \text{Si}\left (\frac{3 f x}{2}\right )\\ \end{align*}
Mathematica [C] time = 0.916471, size = 226, normalized size = 0.86 \[ \frac{i \left (-i a e^{-i (e+f x)} \left (e^{i (e+f x)}+i\right )^2\right )^{3/2} \left (3 f x e^{i e+\frac{3 i f x}{2}} \text{Ei}\left (-\frac{1}{2} i f x\right )+3 i f x e^{2 i e+\frac{3 i f x}{2}} \text{Ei}\left (\frac{i f x}{2}\right )+3 f x e^{\frac{3}{2} i (2 e+f x)} \text{Ei}\left (\frac{3 i f x}{2}\right )-6 i e^{i (e+f x)}-6 e^{2 i (e+f x)}+2 i e^{3 i (e+f x)}+3 i f x e^{\frac{3 i f x}{2}} \text{Ei}\left (-\frac{3}{2} i f x\right )+2\right )}{4 \sqrt{2} x \left (e^{i (e+f x)}+i\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.037, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{2}} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{{\frac{3}{2}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a \left (\sin{\left (e + f x \right )} + 1\right )\right )^{\frac{3}{2}}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]